<h1>article list</h1>
<?php if(count($this->paginator)){?>
<table>
<tr><th>编号</th><th>文章标题</th><th>操作</th></tr>
<?php foreach ($this->paginator as $article){?>
<tr><td><?php echo $article['article_id']?></td><td><?php echo $article['article_title']?></td><td><a href="<?php echo $this->baseUrl().'/admin/article/update?aid='.$article['article_id'] ?>">更新</a></td></tr>
<?php }?>
</table>
<?php }?>
<?php echo $this->paginationControl($this->paginator,
                                    'Sliding',
                                    'my_pagination_control.phtml'); ?>